<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 
<head>
<TITLE>Genpalunitable Tool</TITLE>
<link rel="stylesheet" type="text/css" href="../rotor.css">
</head>
<body>

<H1>Genpalunitable Tool</H1>

 
<p>The Shared Source CLI (SSCLI) 2.0 implements Unicode support in the 
platform adaptation layer (PAL) by the 
means of a table of values in the <a href="../../pal/unix/locale/unicode_data.c">
unicode_data.c</a> file.</p>

 
<p>The genpalunitable tool is the means of generating this file.&nbsp; The source for this  tool can be found at
<a href="../../tools/genpalunitable">sscli20\tools\genpalunitable</a>.&nbsp; 
It must be run under an SSCLI build&nbsp;on Microsoft Windows&reg; because it uses Windows APIs to 
create the Unicode table data.&nbsp; </p>

 
<p>The genpalunitable tool calls the Microsoft Win32&reg; API GetStringTypeExW() for 
all 65536 Unicode characters, and records information about its return value in 
this table. The PAL then uses this static table to implement GetStringTypeExW() 
and other APIs that examine characteristics of Unicode characters.</p>

 
<p>To build this tool, switch to the sscli20\tools\genpalunitable directory and 
run the <code>build</code> command.&nbsp; The executable file will be created in 
the rotor_x86 subdirectory.&nbsp; Run the tool and it will emit the unicode_data.c file in the same directory as the tool 
executable file.&nbsp; </p>

 
<p>There is no build requirement to run this tool as the unicode_data.c is 
included in the SSCLI source tree, but the tool is provided for informational 
purposes.</p>

 
<h4>Usage</h4>

 
<blockquote>

 
<pre>genpalunitable</pre>

 
</blockquote>

 
<h5>See Also</h5>

<P><a href="tools_index.html">Tools Index</a></P>
<hr>
<p><i>Copyright (c) 2006 Microsoft Corporation. All rights reserved.</i></p>
</BODY>
</HTML>